#include <iostream>
#include <tbb/task_group.h>
#include <string>
#include <thread>

using namespace tbb;
using namespace std;

void download(string file) {
    for (int i = 0; i < 10; ++i) {
        cout << "Downloading" << file
            << "(" << i * 10 << "%)..." << endl;
        std::this_thread::sleep_for(chrono::milliseconds(400));
    }
    cout << "Downloading complete:" << file << endl;
}

void interact() {
    string name;
    std::cin >> name;
    cout << "Hi," << name << endl;
}
int main(){

    tbb::task_group tg;
    tg.run([&] {
        download("hello.zip");
        });
    tg.run([&] {
        interact();
        });
    tg.wait();
    return 0;
}